monitor=[REDACTED], 1920x1080@[REDACTED], 0x0, 1

$wallpaper = ~/.wallpapers/wallpaper.jpg

exec-once=dinit -u -q
exec-once=waybar -c ~/.config/hypr/waybar/config.jsonc -s ~/.config/hypr/waybar/style.css
exec-once=swaybg -i $wallpaper -m fill
exec-once=dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=Hyprland
source = ~/.config/hypr/env.conf

input {
    kb_layout    = us,ru
    kb_options   = grp:caps_toggle
    follow_mouse = 1
    sensitivity  = 0
    repeat_delay = 300
    repeat_rate  = 50
}

general {
    gaps_out = 6
    gaps_in  = 6

    border_size = 2

    col.active_border   = rgb(349cc3)
    col.inactive_border = rgb(1a1a1a)

    layout = dwindle
}

decoration {
    # inactive_opacity = 0.9

    rounding = 0

    blur {
        enabled           = yes
        size              = 8
        passes            = 3
        ignore_opacity    = yes
        new_optimizations = yes
    }

    drop_shadow         = yes
    shadow_range        = 8
    shadow_render_power = 3
    col.shadow          = rgba(060606EE)
}

animations {
    enabled = yes

    animation = workspaces,  1, 4, default, slide

    animation = windows,     1, 2, default, popin 90%
    animation = windowsIn,   1, 2, default, popin 90%
    animation = windowsMove, 1, 2, default, slide
    
    animation = fade,        1, 4, default
    
    animation = border,      1, 4, default
}

dwindle {
    pseudotile     = no
    preserve_split = yes
}

master {
    new_is_master = true
}

gestures {
    workspace_swipe = off
}

misc {
    disable_hyprland_logo = true
}

# WINDOW RULES
windowrule = float, ^(qemu)$
# windowrule = float, ^(mpv)$
# windowrule = float, ^(imv)$
windowrule = float, ^(virt-manager)$

windowrulev2 = opacity 0.8, floating:1 focus:0
windowrulev2 = bordercolor rgb(df715a), xwayland:1

windowrulev2 = opaque, class:LibreWolf title:Картинка в картинке
windowrulev2 = opaque, class:mpv|imv

windowrulev2 = rounding 8, class:vesktop title:vesktop

source = ~/.config/hypr/binds.conf
